﻿using System;
using System.Windows.Controls;
using T68Control.S12L_M1;
using T68Control.T68;
using VMControls.WPF.Release;

namespace T68Control.Procdure
{
    internal class Global
    {
        public static string OddLinePointFile { get; set; } = "oddline_std_points";
        public static string EvenLinePointFile { get; set; } = "evenline_std_points";

        public static string OddColumnPointFile { get; set; } = "oddcolumn_std_points";
        public static string EvenColumnPointFile { get; set; } = "evencolumn_std_points";
        public static bool IsLogin { get; set; }
        public static UserEntity User { get; set; }
        public static UserEntity EditUser { get; set; }

        public static UserControl UCHome { get; set; }
        public static UserControl UCDebug { get; set; }
        public static UserControl UCUserManage { get; set; }
        public static UserControl UCS12LM1 { get; set; }
        public static VmRenderControl Control { get; set; }
        public static VmRenderControl ImageControl { get; set; }

        public static TCPServer TcpServer { get; set; }
        //public static CanFDHelper CANfd { get; set; }

        public static T68PBControl T68 { get; set; }
        public static bool IsBusy { get; set; }
        public static bool IsSafeLine { get; set; }
        public static bool IsConfigChanged { get; set; } = true;

        public static Action<string> SetLog { get; set; }
    }
}